package com.bdqn.crm.service;

import com.ktjiaoyu.crm.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @Author：南小楠
 */
public interface UserRepository extends JpaRepository<User, Long>, JpaSpecificationExecutor<User> {
    public List<User> findUsersByUsrNameAndUsrPassword(String usrName, String usrPassword); //登录

    // 根据用户名查询用户对象
    public User findUserByUsrName(String usrName);
}
